﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace LuShanTea.Admin.Web.Models
{
    public class AreaEditModel
    {
        [Required]
        [Range(1,long.MaxValue)]
        public long Id { get; set; }

        [Required]
        [Range(1, long.MaxValue)]
        public long CityId { get; set; }

        [Required]
        [StringLength(10)]
        [RegularExpression(@"^[\u4e00-\u9fa5]+$")]
        public string Name { get; set; }
    }
}